package com.ldp.designpatterns.study.single.hungry;

/**
 * @ClassName HungrySignle
 * @Description 单例模式——饿汉式（静态常量块写法）
 * @Author lindipei
 * @Date 2023/10/13 16:48
 */
public class HungryStaitcSignle {
   /* //1、构造器私有化，外部能new
    private HungryStaitcSignle(){

    }
    //2、本类内部创建对象实例
    private final static  HungryStaitcSignle instance = new HungryStaitcSignle();

    //3、向外暴露一个静态的公共方法。getInstance
    public static HungryStaitcSignle getInstance(){
        return instance;
    }*/
}
